package com.topnav.mc.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.topnav.mc.admin.entity.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IPermissionService extends IService<Permission> {
    /**
     * 查询所有的权限
     * @return
     */
    public List<Permission> findAllPermission();

    /**
     * 根据用户ID查权限
     * @param userId
     * @return
     */
    public List<Permission> findPermissionByUserId(@Param("userId")Long userId);
}
